package com.myteam.fugaocrm.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.myteam.fugaocrm.modle.FgPartnerCompany;
import com.myteam.fugaocrm.sqldb.mapper.FgPartnerCompanyMapper;

@Service
public class PartnerCompanyServiceImpl implements BaseService {

	@Resource protected FgPartnerCompanyMapper fgPartnerCompanyMapper;
	
	public List<FgPartnerCompany> all() {
		return fgPartnerCompanyMapper.all();
	}
	
	public void deleteOne(Integer partnerCompanyId) {
		fgPartnerCompanyMapper.deleteOne(partnerCompanyId);
	}
	
	public void insert(Map<String, Object> params) {
		fgPartnerCompanyMapper.insert(params);
	}
	
	public void update(Map<String, Object> params) {
		fgPartnerCompanyMapper.update(params);
	}
	
}
